/**
 * 在生产环境 代理是无法生效的，所以这里没有生产环境的配置
 * The agent cannot take effect in the production environment
 * so there is no configuration of the production environment
 * For details, please see
 * https://pro.ant.design/docs/deploy
 */
// let chaoyang_url = "http://192.168.1.158:33000"
// // let test_net = "http://121.apulis.cn"
// let test_net = "http://72.apulis.cn/"

let img_url = "http://72.apulis.cn/"
const server_url = 'https://123.60.231.101/'

const api_url = "http://192.168.3.137" //使用开发环境作为标准api来源

// let path = chaoyang_url
export default {
  dev: {
    '/html': {
      target: server_url,
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
      secure: false,
    },
    '/iam/':{
      target:api_url,
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
    '/aipredict/':{
      target:api_url,
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
    '/endpoints/inference/':{
      target:api_url,
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },

    '/apsc-bff/':{
      target:api_url,
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
    '/apflow/':{
      target:api_url,
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
    '/apworkshop/api/v1/':{
      target:api_url,
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
    '/apdevice/api/v1/':{
      target:api_url,
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
    "/bffapflow/api/v1/bffapflow/":{
      target:api_url,
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
    "/v1/":{
      target:api_url,
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
    "/cet/":{
      target:api_url,
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },


    "/api/image/":{
      target:img_url,
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
    "/api/hub/v1/":{
      target:server_url,
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
    '/models/api/v1/':{
      target:"http://119.147.212.162:51080",
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
    "/api/":{
      target:server_url,
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },

    '/custom-user-dashboard-backend/': {
      target: 'http://192.168.1.72/',
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
      // apedge proxy
    '/apedge/api/v1/': {
      target: 'http://192.168.3.137/',
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
    '/apharbor/api/v1/': {
      target: 'http://192.168.3.137/',
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
  },
  test: {
    '/api/': {
      target: 'https://preview.pro.ant.design',
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
  },
  pre: {
    '/api/': {
      target: 'your pre url',
      changeOrigin: true,
      pathRewrite: {
        '^': '',
      },
    },
  },
};
